/*
   Copyright (c) 2011, 2015 Mizar Tools Contributors (mizartools.org)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
/*  Contributors :
 *	2011-02-04 Marco Riccardi - initial implementation
 *	2015-01-11 Marco Riccardi - added msx e wsx
 *
 */
package org.mizartools.system;

public enum WorkFileExtension {
	aco, ano, atr, cho, dct, dcx, dfs, 
	ecl, eid, eno, ere, err, esh, eth, evl,
	fil, frm, frx, idx, log, miz, msx, 
	nol, par, 
	prf, ref, sgl, vcl, xml, wsx;

	public static String getClassName(String extension){
		WorkFileExtension workFileExtension = WorkFileExtension.valueOf(extension);
		switch (workFileExtension){
		case aco : return "Constructors";
		case ano : return "?";
		case atr : return "Constructors";
		case cho : return "?";
		case dct : return "?";		
		case dcx : return "Symbols";
		case dfs : return "Definientia";
		case ecl : return "Registrations";
		case eid : return "IdentifyRegistrations";
		case eno : return "Notations";
		case ere : return "?";
		case err : return "?";
		case esh : return "Schemes";
		case eth : return "Theorems";
		case evl : return "Environ";
		case fil : return "?";
		case frm : return "Formats";
		case frx : return "Formats";
		case idx : return "Symbols";
		case log : return "?";
		case miz : return "?";
		case msx : return "Text-Proper";
		case nol : return "?";
		case par : return "?";
		//case parx : return "Parser";
		case prf : return "?";
		case ref : return "?";
		//case refx : return "Parser";
		case sgl : return "?";
		case vcl : return "Vocabularies";
		case xml : return "Article";
		case wsx : return "Text-Proper";
		default : return null;
		}
	}
	
}